package com.example.service.impl;

import com.example.mapper.SwiperMapper;
import com.example.pojo.Swiper;
import com.example.service.SwiperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SwiperServiceImpl implements SwiperService {

    @Autowired
    private SwiperMapper swiperMapper;

    @Override
    public List<Swiper> getValidSwiper() {
        // 调用Mapper查询符合条件的轮播图（已限制5条）
        return swiperMapper.selectValidSwiper();
    }
}